package com.seata.stock.service;

import com.seata.stock.pojo.Stock;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @ClassName: StockService
 * @Author:
 * @Date:
 * @Version: 1.0
 */
@Service
public interface StockService {
    //获取库存
    public Stock searchStock(Integer productId);
    //更新库存
    public Integer updateStock(Stock stock);
}
